<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path;
%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>
        ${title}
    </title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="<%=basePath%>/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="<%=basePath%>/css/font-awesome.min.css">
    <link rel="stylesheet" href="<%=basePath%>/css/ionicons.min.css">
    <link rel="stylesheet" href="<%=basePath%>/dist/css/AdminLTE.min.css">
    <link rel="stylesheet" href="<%=basePath%>/toastr/toastr.css" type="text/css"/>
    <link rel="stylesheet" href="<%=basePath%>/dist/css/skins/_all-skins.min.css">
    <link rel="stylesheet" href="<%=basePath%>/fileupload/fileinput.min.css"/>
    <link rel="stylesheet" href="<%=basePath%>/bootstrap-datetimepicker/css/bootstrap-datetimepicker.css">
    <link rel="stylesheet" href="<%=basePath%>/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css">
    <link rel="stylesheet" href="<%=basePath%>/plugins/iCheck/all.css">
    <link rel="stylesheet" href="<%=basePath%>/pagination/style/pagination.css" media="screen">
    <link rel="stylesheet" href="<%=basePath%>/plugins/iziModal/css/iziModal.min.css">
    <link rel="stylesheet" href="<%=basePath%>/plugins/select2/select2.min.css">
    <link rel="stylesheet" href="<%=basePath%>/plugins/iCheck/all.css">
    <link rel="stylesheet" href="<%=basePath%>/plugins/loaders/loaders.css"/>
    <link rel="stylesheet" href="<%=basePath%>/plugins/flavr/animate.css"/>
    <link rel="stylesheet" href="<%=basePath%>/plugins/flavr/flavr.css"/>
    <link rel="stylesheet" href="<%=basePath%>/plugins/bootstrap-treeview/css/bootstrap-treeview.css">
    <link rel="stylesheet" href="<%=basePath%>/plugins/viewer/viewer.min.css">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    <style>
        li{
            list-style: none;
        }
    </style>
</head>
<!-- ADD THE CLASS sidedar-collapse TO HIDE THE SIDEBAR PRIOR TO LOADING THE SITE -->
<body class="hold-transition skin-blue sidebar-mini">
<div id="request-div" style="position: absolute;width: 100%;height: 100%;z-index: 10;display: none;">
    <img src='../images/request-sending.gif' style="position: relative;top: 50%;left: 50%;width: 70px;height: 70px">
</div>
<!-- Site wrapper -->
<div class="wrapper">
    <header class="main-header">
        <!-- Logo -->
        <jsp:include page="../logo.jsp" ></jsp:include >
        <!-- Header Navbar: style can be found in header.less -->
        <nav class="navbar navbar-fixed-top">
            <!-- Sidebar toggle button-->
            <a class="sidebar-toggle" data-toggle="offcanvas" role="button" onclick="show()">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </a>
            <jsp:include page="../menuTop.jsp"></jsp:include>
        </nav>
    </header>

    <!-- =============================================== -->

    <!-- Left side column. contains the sidebar -->
    <aside class="main-sidebar">
        <jsp:include page="../menu.jsp"></jsp:include>
        <!-- /.sidebar -->
    </aside>
    <input type="hidden" id="basePath" value="<%=basePath%>/">

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper" style="padding-top:50px;">
        <section class="content">
            <div class="row">
                <div class="col-md-12 right-part">
                    <div class="nav-tabs-custom">
                        <ul class="nav nav-tabs">
                            <li class="active"><a href="#timeline" data-toggle="tab">重大事件</a></li>
                            <li><a href="#install" data-toggle="tab">安装信息</a></li>
                            <li><a href="#file" data-toggle="tab">文件档案</a></li>
                            <li><a href="#score" data-toggle="tab">评分信息</a></li>
                        </ul>
                        <input type="hidden" id="apiUrl" value="<%=basePath%>/">
                        <li class="tab-content" style="min-height: 600px">
                            <div class="active tab-pane" id="timeline"  style="min-height: 600px">
                                <ul class="timeline timeline-inverse" id="timeAxis">
                                    <p>没有相关事件</p>
                                </ul>
                            </div>
                            <div class="tab-pane" id="install">
                                <table class="table table-striped table-bordered">
                                    <tr>
                                        <td colspan="6" class="text-left col-md-12 info">
                                            <label>安装信息</label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="text-right"><label class="text-muted">医院联系人</label></td>
                                        <td class="text-left"><span id="hospitalContacts"></span></td>
                                        <td class="text-right"><label class="text-muted">医院联系电话</label></td>
                                        <td class="text-left"><span id="hospitalPhone"></span></td>
                                        <td class="text-right"><label class="text-muted">负责人</label></td>
                                        <td class="text-left"><span id="projectChargePerson"></span></td>
                                    </tr>
                                    <tr>
                                        <td class="text-right"><label class="text-muted">负责人电话</label></td>
                                        <td class="text-left"><span id="projectChargePersonPhone"></span></td>
                                        <td class="text-right"><label class="text-muted">服务商</label></td>
                                        <td class="text-left"><span id="serviceId"></span></td>
                                        <td class="text-right"><label class="text-muted">预计安装时间</label></td>
                                        <td class="text-left"><span id="estimateInstallDate"></span></td>
                                    </tr>
                                    <tr>
                                        <td class="text-right"><label class="text-muted">实际安装时间</label></td>
                                        <td class="text-left"><span id="actualInstallDate"></span></td>
                                        <td class="text-right"><label class="text-muted">状态</label></td>
                                        <td class="text-left"><span id="status"></span></td>
                                        <td class="text-right"><label class="text-muted">备注</label></td>
                                        <td class="text-left"><span id="remark"></span></td>
                                    </tr>
                                    <tr>
                                        <td colspan="6" class="text-left col-md-12 info">
                                            <label>设备信息</label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="text-right"><label class="text-muted">设备名称</label></td>
                                        <td class="text-left"><span id="deviceName"></span></td>
                                        <td class="text-right"><label class="text-muted">设备型号</label></td>
                                        <td class="text-left"><span id="deviceModel"></span></td>
                                        <td class="text-right"><label class="text-muted">产地</label></td>
                                        <td class="text-left"><span id="placeOrigin"></span></td>
                                    </tr>
                                    <tr>
                                        <td class="text-right"><label class="text-muted">规格</label></td>
                                        <td class="text-left"><span id="specifications"></span></td>
                                        <td class="text-right"><label class="text-muted">单价(元)</label></td>
                                        <td class="text-left"><span id="price"></span></td>
                                        <td class="text-right"><label class="text-muted">附件</label></td>
                                        <td class="text-left"><span id="attachment"></span></td>
                                    </tr>
                                    <tr>
                                        <td class="text-right"><label class="text-muted">采购数量</label></td>
                                        <td class="text-left"><span id="quantity"></span></td>
                                        <td class="text-right"><label class="text-muted">保养周期(月)</label></td>
                                        <td class="text-left"><span id="upkeepCycle"></span></td>
                                        <td class="text-right"><label class="text-muted">医院</label></td>
                                        <td class="text-left"><span id="hospital"></span></td>
                                    </tr>
                                    <tr>
                                        <td class="text-right"><label class="text-muted">维修商</label></td>
                                        <td class="text-left"><span id="deviceMan"></span></td>
                                        <td class="text-right"><label class="text-muted">厂商</label></td>
                                        <td class="text-left"><span id="manufacturerName"></span></td>
                                        <td class="text-right"><label class="text-muted">合同编号</label></td>
                                        <td class="text-left"><span id="contractNo"></span></td>
                                    </tr>
                                    <tr>
                                        <td class="text-right"><label class="text-muted">厂商保修期（月）</label></td>
                                        <td class="text-left"><span id="deviceWarrantyPeriod"></span></td>
                                        <td class="text-right"><label class="text-muted">经销商保修期（月）</label></td>
                                        <td class="text-left"><span id="supplierWarrantyPeriod"></span></td>
                                        <td class="text-right"><label class="text-muted"></label></td>
                                        <td class="text-left"><span id=""></span></td>
                                    </tr>
                                </table>
                             </div>

                            <!-- 文件管理 -->
                            <div class="tab-pane table-responsive" id="file" style="min-height: 600px">
                                <table class="table table-bordered">
                                    <thead>
                                        <tr class="info">
                                            <th class="text-center text-muted" style="width: 35px">#</th>
                                            <th class="text-center text-muted">文件类型</th>
                                            <th class="text-center text-muted">文件名</th>
                                            <th class="text-center text-muted">文件下载</th>
                                        </tr>
                                    </thead>
                                    <tbody id="installFileTable">
                                        <tr>
                                            <td class='text-center text-muted' colspan="8">暂无数据</td>
                                        </tr>
                                    </tbody>
                                </table>
                                <div id="file_show_modal"></div>
                            </div>

                            <div class="tab-pane table-responsive" id="score" style="min-height: 600px">
                                <table class="table table-bordered">
                                    <thead>
                                        <tr class="info">
                                            <th>服务</th>
                                            <th>评分</th>
                                        </tr>
                                    </thead>
                                    <tbody id="scoreTable">
                                        <tr>
                                            <td class="text-center" colspan="2">暂无评分信息</td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>

                        </li>
                    </div>
                </div>
            </div>
            <!-- /.col -->
        </section>
    </div>

    <div id="list-model" style="display: none;">
        <div class="box-body">
            <table id="clickRepairCount-table" class="max-td table table-bordered table-hover">
                <thead>
                <tr class="text-info">
                    <td>序号</td>
                    <td>详情</td>
                    <td>设备名称</td>
                    <td>医院</td>
                    <td>故障时间</td>
                    <td>保养人</td>
                </tr>
                </thead>
                <tbody>
                <td>1</td>
                <td><button type="button" class="btn btn-primary btn-xs" data-original-title="详情"><i class="fa fa-file-text-o"></i></button></td>
                <td>新增设备1</td>
                <td>红房子</td>
                <td>2018-1-1</td>
                <td>刘晓</td>
                </tbody>
            </table>
            <table id="clickUpkeepCount-table" class="max-td table table-bordered table-hover">
                <thead>
                <tr class="text-info">
                    <td>序号</td>
                    <td>详情</td>
                    <td>设备名称</td>
                    <td>医院</td>
                    <td>保养时间</td>
                </tr>
                </thead>
                <tbody>
                <td>1</td>
                <td><button type="button" class="btn btn-primary btn-xs" data-original-title="详情"><i class="fa fa-file-text-o"></i></button></td>
                <td>新增设备1</td>
                <td>红房子</td>
                <td>2017-11-3</td>
                </tbody>
            </table>
            <table id="clickUpkeepPlanCount-table" class="max-td table table-bordered table-hover">
                <thead>
                <tr class="text-info">
                    <td>序号</td>
                    <td>设备名称</td>
                    <td>设备序列号</td>
                    <td>设备型号</td>
                    <td>计划保养时间</td>
                </tr>
                </thead>
                <tbody>
                <td>1</td>
                <td>新增设备1</td>
                <td>SN1001</td>
                <td>MV2911</td>
                <td>2017-11-1</td>
                </tbody>
            </table>
        </div>
        <div class="box-footer">
            <span class="pull-right">
                <button data-iziModal-close class="btn btn-default" style="margin-right: 5px">关闭</button>
            </span>
        </div>
    </div>

    <footer class="main-footer">
        <div class="pull-right hidden-xs">
            <b>Version</b> 1.0.0
        </div>
        <strong>Copyright &copy; 2019 <a href="http://almsaeedstudio.com">Topmed</a>.</strong> All rights reserved.
    </footer>
    <jsp:include page="../menuRight.jsp"></jsp:include>
    <!-- ./wrapper -->

    <!-- ./wrapper -->
    <script src="<%=basePath%>/plugins/jQuery/jquery-2.2.3.min.js"></script>
    <script src="<%=basePath%>/bootstrap/js/bootstrap.min.js"></script>
    <script src="<%=basePath%>/plugins/slimScroll/jquery.slimscroll.min.js"></script>
    <script src="<%=basePath%>/plugins/fastclick/fastclick.js"></script>
    <script src="<%=basePath%>/dist/js/app.min.js"></script>
    <script src="<%=basePath%>/dist/js/demo.js"></script>
    <script src="<%=basePath%>/bootstrapvalidator/js/bootstrapValidator.min.js"></script>
    <script src="<%=basePath%>/toastr/toastr.js"></script>
    <script src="<%=basePath%>/pagination/js/jquery.pagination.min.js"></script>
    <script src="<%=basePath%>/js/overallSituation.js"></script>
    <script src="<%=basePath%>/fileupload/fileinput.min.js"></script>
    <script src="<%=basePath%>/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
    <script src="<%=basePath%>/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
    <script src="<%=basePath%>/plugins/select2/select2.min.js"></script>
    <script src="<%=basePath%>/plugins/select2/i18n/zh-CN.js"></script>
    <script src="<%=basePath%>/plugins/iCheck/icheck.min.js"></script>
    <script src="<%=basePath%>/plugins/iziModal/js/iziModal.min.js"></script>
    <script src="<%=basePath%>/plugins/flavr/flavr.min.js"></script>
    <script src="<%=basePath%>/plugins/bootstrap-treeview/js/bootstrap-treeview.js"></script>
    <script src="<%=basePath%>/echarts/echarts.min.js"></script>
    <script src="<%=basePath%>/plugins/viewer/viewer.min.js"></script>
    <script src="<%=basePath%>/js/install/install-info.js"></script>
</body>
</html>
